﻿@model CardInChina.Bussiness.Frontend.Models.CustomerOrderInfoInUserWelcome
@{
    ViewBag.Navi = "#ui-welcome";
    Layout = "~/Views/Shared/_User.cshtml";
}
<div class="myhome_center">
    <div class="data">
        <div class="info2">
            <h2>
                欢迎，<span id="">@Model.Account</span></h2>
            &nbsp;&nbsp; <a href="/user/logout">[注销]</a> <span id="" class="info_time">您的上次登录时间：@Model.LastLogonDate</span>
        </div>
        <!--<div class="approve_mail">您还没有通过 <a href="">点此发送确认邮件>></a></div>-->
        <div class="shuju">
            <ul>
                <li class="shuju_w">账户余额：</li><li><span class="import">￥@Model.Balance</span> <a
                    href="/user/deposit">充值</a></li>
                <li class="shuju_w">账户状态：</li><li>
                    @if (Model.IsActived == 1)
                    {
                        <span>已激活</span>
                    }
                    else
                    {
                        <span>未激活</span><a href="/user/activate">激活</a>
                    }
                </li>
                <li class="shuju_w">会员级别：</li><li>
                    @if (Model.IsVip == true)
                    {
                        <span>VIP会员</span>
                    }
                    else
                    {
                        <span>普通会员</span><a href="/user/promote">提升为VIP</a>
                    }
                </li>
                <li class="shuju_w">会员类型：</li><li>
                    @if (Model.AutoSend == 1)
                    { 
                        <span>已验证</span>
                    }
                    else
                    { 
                        <span>未验证</span><a href="/user/verify">验证</a>
                    }
                </li>
                <li class="shuju_w">总积分： </li>
                <li><span>@Model.PurchaseTimes</span></li>
                <li class="shuju_w">可用积分：</li><li><span class="import">@Model.AvailableBonus</span>
                    <a href="/user/credits">兑换</a></li>
                <li class="shuju_w">邮件认证：</li><li><a href="">发送确认邮件</a></li>
            </ul>
        </div>
        <dl class="gwc">
            <dt><span class="ui-icons ui-icons-gwc"></span></dt>
            <dd>
                <h2>
                    订单详情：</h2>
                <span>已支付：
                    @Html.ActionLink(Model.PayedOrderCount.ToString(), "Order", "Customer", new { ordertype = "paid" }, null)
                </span><span>未支付：
                    @Html.ActionLink(Model.NonPayedOrderCount.ToString(), "Order", "Customer", new { ordertype = "tobepaid" }, null)
                </span><span>已取消：
                    @Html.ActionLink(Model.CanceledOrderCount.ToString(), "Order", "Customer", new { ordertype = "cancelled" }, null)
                </span>
            </dd>
        </dl>
    </div>
    <!--<div class="reco_pd">
                            <div class="title">特价促销</div>
                            <div class="ui-icons cycle_l_no" id="prevBtn"></div>
                            <div class="reco_pd_c_box" id="slider">
                                <ul>
                                    <li>
                                    <table>
                                        <tbody>
                                            <tr>
                                                <td width="180" rowspan="3">
                                                    <a href=""><img src="http://localhost:9519/cardinchina/images/infoList.gif" /></a></td>
                                                <td>Q币卡</td>
                                                <td>
                                                <select class="products_name_chose" uu="chose2">
                                                    <option>美元</option>
                                                    <option>加元</option>
                                                    <option>英磅</option>
                                                    <option>欧元</option>
                                                    <option>澳元</option>
                                                    <option>日元</option>
                                                    <option>新元</option>
                                                    <option>人民币</option>
                                                </select>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <p>腾讯Q币卡(卡密)-30元</p>
                                                    <p class="products_arrow_price">会员价: <span>6.10</span><span class="products_arrow_price2">美元</span>  VIP价: <span>5.92</span><span class="products_arrow_price2">美元</span></p>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <p>
                                                        <button class="products_arrow_ui1 ui-icons"></button>
                                                        <button class="products_arrow_ui2 ui-icons"></button>
                                                        <button class="products_arrow_ui3 ui-icons"></button>
                                                    </p>
                                                </td>
                                            </tr>
                                        </tbody>
                                        </table>
                                    </li>
                                </ul>
                            </div>
                            <div class="ui-icons cycle_r" id="nextBtn"></div>
                        </div>-->
    <div class="guess">
        <div class="title">
            最近购买商品</div>
        <ul class="clearfix">
            @foreach (var card in Model.LastestCards)
            {
                <li>
                    <div class="goods">
                        <a title="@card.CardName" 
                        href="@Url.Action("Index", "CardDetail", new { cardKey = card.CardInfoKey })"
                         target = "_blank" class="pic">
                            <img src="/content/images/photo/@card.Photo" alt="" />
                        </a>
                        <p class="name">
                            @card.CardName
                            <p>
                                会员价: <span>@card.VIPPrice</span><span class="products_arrow_price1">人民币</span> VIP价:
                                <span>@card.Price</span><span class="products_arrow_price1">人民币</span></p>
                        </p>
                    </div>
                </li>
            }
        </ul>
    </div>
</div>
@*<div class="myhome_right">
    <h2>
        游龙公告</h2>
    <ul>
        <li><span>· </span><a href="" target="_blank">新年积分换礼活动开始啦</a></li>
        <li><span>· </span><a href="" target="_blank">中秋温馨积分换礼公告</a></li>
        <li><span>· </span><a href="" target="_blank">6周年店庆,积分换礼</a></li>
        <li><span>· </span><a href="" target="_blank">客服24小时在线服务</a></li>
    </ul>
    <h2>
        常见问题</h2>
    <ul>
        <li><span>· </span><a href="" target="_blank">新年积分换礼活动开始啦</a></li>
        <li><span>· </span><a href="" target="_blank">中秋温馨积分换礼公告</a></li>
        <li><span>· </span><a href="" target="_blank">6周年店庆,积分换礼</a></li>
        <li><span>· </span><a href="" target="_blank">客服24小时在线服务</a></li>
    </ul>
    <h2>
        小调查</h2>
    <div class="jianyi">
        <p>
            您对新版“用户中心”还满意么？</p>
        <p>
            欢迎您提出意见和建议！</p>
        <dl>
            <dt>
                <textarea id="suggestContent" rows="2" cols="20"></textarea>
            </dt>
            <dd>
                <input id="suggestBtn" type="button" value="提 交" class="products_arrow_ui ui-icons" /></dd>
        </dl>
    </div>
</div>*@ 